package com.sunda.spmsuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wayne
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SPMS_ROLE")
@ApiModel(value="SpmsRole对象", description="")
public class SpmsRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一UUID")
    @TableId("UUID")
    private String uuid;

    @ApiModelProperty(value = "角色编码")
    @TableField("ROLE_ID")
    private String roleId;

    @ApiModelProperty(value = "角色中文描述")
    @TableField("ROLE_CN_NAME")
    private String roleCnName;

    @ApiModelProperty(value = "角色英文描述")
    @TableField("ROLE_EN_NAME")
    private String roleEnName;

    @ApiModelProperty(value = "角色信息")
    @TableField("ROLE_INFO")
    private String roleInfo;

    @ApiModelProperty(value = "创建人工号")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人工号")
    @TableField("UPDATE_USER")
    private String updateUser;

    @ApiModelProperty(value = "更新人时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleCnName() {
        return roleCnName;
    }

    public void setRoleCnName(String roleCnName) {
        this.roleCnName = roleCnName;
    }

    public String getRoleEnName() {
        return roleEnName;
    }

    public void setRoleEnName(String roleEnName) {
        this.roleEnName = roleEnName;
    }

    public String getRoleInfo() {
        return roleInfo;
    }

    public void setRoleInfo(String roleInfo) {
        this.roleInfo = roleInfo;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SpmsRole{" +
                "uuid='" + uuid + '\'' +
                ", roleId='" + roleId + '\'' +
                ", roleCnName='" + roleCnName + '\'' +
                ", roleEnName='" + roleEnName + '\'' +
                ", roleInfo='" + roleInfo + '\'' +
                ", createUser='" + createUser + '\'' +
                ", createTime=" + createTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
